import java.security.MessageDigest;

public class MD5ForSwift {

	public void trymethod() throws Exception {
		
		MessageDigest md5 = MessageDigest.getInstance("MD5");
		String str = "hello";
		byte[] by = str.getBytes();
		byte[] out = md5.digest(by);
		System.out.println(out.toString());
	}
}
